#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
	int N = 0;
	cin >> N;
	int hours = N / 3600;
	N %= 3600;
	int minutes = N / 60;
	N %= 60;
	int seconds = N;
	printf("%d:%d:%d", hours,minutes, seconds);
	return 0;
}